package com.example.demo.mongodb.service;

import com.example.demo.entiy.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MongoUserService {
    void save(User user);
    User findByName(String name);
    List<User> findAll();
    void deleteById(Long id);
}
